package com.jhw.ymcc.domain;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author jhw
 * @since 2022-10-20
 */
@TableName("t_kill_activity")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class KillActivity extends Model<KillActivity> {

    public static final Integer STATUS_WAIT_PUBLISH = 0;
    private static final long serialVersionUID = 1L;




    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    private String name;
    @TableField("time_str")
    private String timeStr;
    @TableField("begin_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date beginTime;
    @TableField("end_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date endTime;
    /**
     * 0待发布，1已发布 ，2已取消
     */
    @TableField("publish_status")
    private Integer publishStatus;
    @TableField("publish_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date publishTime;



    @Override
    protected Serializable pkVal() {
        return this.id;
    }


}
